package com.gong.DesignPattern.OrderPattern;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/6/24 0024 10:27
 */
public class BuyOrder implements Order {
    private Stock stock = null;

    public BuyOrder(Stock stock) {
        this.stock = stock;
    }

    @Override
    public void execute() {
        stock.buy();
    }
}
